package com.ruoyi;

import com.ruoyi.frame.base.ResultXml;
import org.slf4j.Logger;
import org.slf4j.LoggerFactory;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RestController;

/**
 * 添加存活接口
 * Created by 曾祥江 on 2018/7/23.
 * zengxiangjiang@umpay.com
 */
@RestController
public class KeepAliveController {
    private Logger log = LoggerFactory.getLogger(KeepAliveController.class);

    @GetMapping(value = "/KeepAlive", produces = {"application/xml;charset=UTF-8"})
    public ResultXml KeepAlive() {
        ResultXml resultXml = new ResultXml("0000", "The plat is running stably.");
        log.info("KeepAlive resultXml={}", resultXml);
        return resultXml;
    }

}
